package com.design03_behavioral.pattern23_mediator.example01;

/**
 * @ClassName 具体同事类
 * @Description TODO
 * @Author 22963
 * @DATE 2023/9/11 1:17
 */
public class ConcreteColleagueA extends Colleague {

    public ConcreteColleagueA(Mediator mediator) {
        super(mediator);
    }


    @Override
    public void exec(String key) {
        System.out.println("====在组件A中,通过中介者执行!");
        getMediator().apply(key);
    }

}
